home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / AppleEvents / AEAddress.h < prev    next >
Text File  |  2000-06-23  |  679b  |  35 lines

  1. // AEAddress.h
  2.  
  3. #ifndef AEAddress_h
  4. #define AEAddress_h
  5.  
  6. #ifndef Process_h
  7. #include "Process.h"
  8. #endif
  9. #ifndef FileSignature_h
  10. #include "FileSignature.h"
  11. #endif
  12. #ifndef AEDescriptor_h
  13. #include "AEDescriptor.h"
  14. #endif
  15. #ifndef ConstData_h
  16. #include "ConstData.h"
  17. #endif
  18.  
  19. class AEAddress: public AEDescriptor
  20.   {
  21.     public:
  22.         AEAddress( const Process& process )
  23.           : AEDescriptor( ConstData( &process.Number(),
  24.                                                 sizeof( process.Number() ) ),
  25.                                   AEType( typeProcessSerialNumber ) )
  26.           {}
  27.         
  28.         AEAddress( const FileSignature& signature )
  29.           : AEDescriptor( ConstData( &signature, sizeof( signature ) ),
  30.                                   AEType( typeApplSignature ) )
  31.           {}
  32.   };
  33.  
  34. #endif
  35.